package com.example.wjh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.Date;

@Getter
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("LeaveApplicants") // 指定对应的数据库表名
public class LeaveApplicant {
    @TableId(value = "LeaveID" , type = IdType.AUTO) // 指定主键字段名
    private Long leaveId;//请假id
    @TableField("ApplicantName")
    private String applicantName;//申请人姓名
    @TableField("ApplicantType")
    private String applicantType;//申请人类别
    @TableField("LeaveType")
    private String leaveType;//请假类别
    @TableField("StartDate")
    private Date startDate;//请假开始时间
    @TableField("EndDate")
    private Date endDate;//请假结束时间
    @TableField("Reason")
    private String reason;//请假原因
    @TableField("Status")
    private String status = "未通过";//请假状态
    @TableField("CreatedAt")
    private Date createdAt;//请假创建时间
    public void setLeaveId(Long leaveId) {
        this.leaveId = leaveId;
    }
}
